import React,{Component} from 'react';
import {Route,Switch} from 'react-router-dom';

import Home from '../container/Home';
import Seach from '../container/Seach';
import My from '../container/My';
import History from '../container/History';
import Login from '../container/Login/Login.js';
import Registe from '../container/Login/Registe.js';
import NotFound  from '../../404';

export default class CtrlRouter extends Component{
	render(){
		return(
			<Switch>
				<Route exact path="/" component={Home}></Route>
				<Route  path="/seach" component={Seach}></Route>
				<Route  path="/my" component={My}></Route>
				<Route  path="/history" component={History}></Route>
				<Route  path="/login" component={Login}></Route>
				<Route  path="/registe" component={Registe}></Route>
				<Route component={NotFound}></Route>
			</Switch>
		)
	}
}

